package org.bt.common.validator.number;


/**
 * MaxValidatorForNumber
 * <p>
 * Created on 2020/1/9
 *
 * @author tongw
 */
public class MaxValidatorForNumber extends AbstractMaxValidator<Number> {

    @Override
    protected int compare(Number number) {
        return NumberComparatorHelper.compare(number, maxValue, InfinityNumberComparatorHelper.GREATER_THAN);
    }
}
